import request from '@/utils/request'

export function getUserRole(data) {
  return request({
    url: '/api/UserRole/GetList',
    method: 'post',
    data: data
  })
}

export function getUserRoleAuthority(data) {
  return request({
    url: '/api/UserRole/GetAuthorityList',
    method: 'post',
    data: data
  })
}

export function saveUserRoleAuthority(data) {
  return request({
    url: '/api/UserRole/SaveAuthority',
    method: 'post',
    data: data
  })
}

export function saveUserRole(data) {
  return request({
    url: '/api/UserRole/Save',
    method: 'post',
    data: data
  })
}

export function delUserRole(data) {
  return request({
    url: '/api/UserRole/Delete',
    method: 'post',
    data: data
  })
}
export function GetUserBtns(data) {
  return request({
    url: '/api/SystemButton/GetUserBtns',
    method: 'post',
    data: data
  })
}

export function GetById(data) {
  return request({
    url: '/api/SystemButton/GetById',
    method: 'post',
    data: data
  })
}